package com.zb.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @Author WEN
 * @Date 2024/1/8 0008
 **/
@Data
@ApiModel("仓库出入库物料一物一码对象")
public class StoreGoodsStockCodeVo {

    @ApiModelProperty(value = "一物一码ID", hidden = true)
    private Long codeId;

    @NotNull(message = "一物一码不能为空")
    @ApiModelProperty(value = "一物一码", required = true)
    private String code;

    public StoreGoodsStockCodeVo() {
    }

    public StoreGoodsStockCodeVo(Long codeId, String code) {
        this.codeId = codeId;
        this.code = code;
    }
}
